﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>left_main.html</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/jquery.js" type=""></script>
<script language="JavaScript" src="login/UserManagerControl.js"  type=""></script>
<script type="text/javascript" src="warning_module/warningController.js"></script>
<script type="text/javascript">
$(function(){
	$('.title').click(function(){
		var $ul = $(this).next('ul');
		$('dd').find('ul').slideUp();
		if($ul.is(':visible')){
			$(this).next('ul').slideUp();
		}else{
			$(this).next('ul').slideDown();
		}
	});
});
// 加载菜单栏
function init(){
    let account=sessionStorage.getItem("account");
    let level=sessionStorage.getItem("level");
    // 一旦有一个为null,那么就重新登录
    if(account==null || level==null){
        alert("登录超时，请重新登录!");
        window.location.href="login/login.html";
    }
    // js动态处理Menu
    UserMenuControl(level);
    window.parent.frames['rightFrame'].location="login/personalInfo/viewPersonInfo.html?_="+Math.random();
}

// 查看设备信息
function getDeviceInfo(){
    window.parent.frames['rightFrame'].location="DeviceManage/deviceDatatable.html?_="+Math.random();
}

function  FeedBack(){
    window.parent.frames['rightFrame'].location="DeviceManage/Feedback/feedback.html?_="+Math.random();
}

function getFeedbackInfo(){
    window.parent.frames['rightFrame'].location="DeviceManage/Feedback/feedbackDatatable.html?_="+Math.random();
}

function dealFeedback(){
    window.parent.frames['rightFrame'].location="DeviceManage/Feedback/dealFeedback.html?_="+Math.random();
}

function getWeather(){
    window.parent.frames['rightFrame'].location="DeviceManage/tianqi/newTianqi.html?_="+Math.random();
}


</script>


</head>

<body style="background:#f0f9fd;" onload="init()">
	<div class="lefttop"><span></span>通讯录</div>
    <dl class="leftmenu">

    <dd>
    <div class="title">
    <span><img src="images/leftico02.png" /></span>用户管理
    </div>
    <ul class="menuson" id="ManagerUserMenu">
        <li><cite></cite><a onclick="viewPersonInfo()">查看个人信息</a><i></i></li>
        <li><cite></cite><a onclick="modifyPersonInfo()">完善个人信息</a><i></i></li>
    </ul>
    </dd> 
    
    
    <dd><div class="title"><span><img src="images/leftico03.png" /></span>权限管理</div>
    <ul class="menuson" id="permissionMenu">
        <li><cite></cite><a onclick="applyPermission()">申请修改权限</a><i></i></li>
    </ul>    
    </dd>  


    <dd><div class="title"><span><img src="images/leftico04.png" /></span>大棚管理</div>
        <ul class="menuson">

            <li><cite></cite><a href="greenhouse/greenhouse_list.html" target="rightFrame">查看大棚</a><i></i></li>
            <!--        查看用户信息内包含内容：大棚信息表（导出、排序、统计）-->
        </ul>
    </dd>

    <dd id="workerMenu"><div class="title"><span><img src="images/leftico04.png" /></span>员工管理</div>
        <ul class="menuson">
            <li><cite></cite><a href="salary/salary_table.html" target="rightFrame">员工工资管理</a><i></i></li>
            <li><cite></cite><a href="check/check_table.html" target="rightFrame">员工考勤管理</a><i></i></li>
        </ul>
    </dd>


    <dd id="cautionMenu" onclick="getWarningTable()"><div class="title"><span><img src="images/leftico04.png" /></span>预警管理</div>


    <dd id="deviceMenu"><div class="title"><span><img src="images/leftico04.png" /></span>设备管理</div>
        <ul class="menuson">
            <li><cite></cite><a onclick="getDeviceInfo()">查看设备信息</a><i></i></li>
            <!--        查看设备信息内包含内容：设备信息表（导出、排序、统计）-->
        </ul>
    </dd>

    <dd><div class="title"><span><img src="images/leftico04.png" /></span>历史天气</div>
        <ul class="menuson">
            <li><cite></cite><a onclick="getWeather()">查看历史天气</a><i></i></li>
            <!--        查看历史天气信息内包含内容：历史天气信息表（导出、排序、统计）-->
        </ul>
    </dd>

    <dd><div class="title"><span><img src="images/leftico04.png" /></span>反馈</div>
        <ul class="menuson" id="feedBackMenu">
            <li><cite></cite><a onclick="FeedBack()">提交反馈</a><i></i></li>
            <li><cite></cite><a onclick="getFeedbackInfo()">查看反馈信息</a><i></i></li>
            <!--        查看用户信息内包含内容：反馈信息表（导出、排序、统计）-->
<!--            <li><cite></cite><a onclick="dealFeedback()">处理反馈信息</a><i></i></li>-->
        </ul>
    </dd>
    </dl>
</body>
</html>